//
//  CustomTextField.m
//  DreamSoftReimburse
//
//  Created by ZJ on 17/4/14.
//  Copyright © 2017年 ZJ. All rights reserved.
//

#import "CustomTextField.h"
#import "ZJAdditions.h"
@implementation CustomTextField

- (instancetype)initWithFrame:(CGRect)frame placeholder:(NSString *)placeholder leftSpace:(CGFloat)leftSpace borderColor:(UIColor *)borderColor backgroundColor:(UIColor *)backgroundColor
{
    self = [super initWithFrame:frame];
    if (self) {
      
        [self setTextFieldLeftforWidth:leftSpace];
        self.placeholder = placeholder;
        self.backgroundColor = backgroundColor;
        self.layer.borderWidth = 1;
        self.layer.borderColor = borderColor.CGColor;
        self.layer.cornerRadius = 8 * [UIScreen zj_screenHScale];
        self.font = [UIFont systemFontOfSize:18 * [UIScreen zj_textFontScale]];
        self.textColor = [UIColor textBlackColor];
        self.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
    }
    return self;
}

@end
